﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace _1._2._2015_MVCTodo.Models
{
    public class TodoViewModel
    {
        public int Id { get; set; }
        [DisplayName("What do you want to do?")]
        public string Text { get; set; }
        public DateTime DateCreated { get; set; }
        public DateTime DateCompleted { get; set; }
        public bool IsCompleted { get; set; }
    }

    public class TodoIndexViewModel
    {
        public List<TodoViewModel> Todos { get; set; }
    }

    public class CreateTodoViewModel
    {
        public string Text { get; set; }
    }

    public class UpdateTodoViewModel
    {
        public int Id { get; set; }
        public string Text { get; set; }
        public bool IsCompleted { get; set; }
    }
}